<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<link rel="stylesheet" href="./animate.css">
	<script src="./vue.js"></script>
</head>
<style>

	/*@keyframes bounce-in {
		0% {
			transform: scale(1);
		}
		50% {
			transform: scale(1.5);
		}
		100% {
			transform: scale(1);
		}
	}
	
	.enter {
		transform-origin: left center;
		animation: bounce-in 1s;
	}

	.leave {
		transform-origin: left center;
		animation: bounce-in 1s reverse;
	}*/
</style>
<body>
	<div id="root">
		<transition name="fade" enter-active-class="animated bounceInLeft" leave-active-class="animated bounceInRight">
			<div v-if="show">hello world</div>
		</transition>
		<button @click="handleClick">切换</button>
	</div>
	
	<script>
		var vm = new Vue({
			el: '#root',
			data: {
				show: true
			},
			methods: {
				handleClick () {
					this.show = !this.show;
				}
			}
		})
	</script>
</body>
</html>